//Array.prototype.forEach || // (Array.prototype.forEach = function (a, b) { // var d, c; // if (null == this) throw new TypeError("this is null or not defined"); // var e = Object(this), // f = e.length >>> 0; // if ("[object Function]" !== {}.toString.call(a)) // throw new TypeError(a + " is not a function"); // b && (d = b); // for (c = 0; c < f; ) { // var g; // Object.prototype.hasOwnProperty.call(e, c) && // ((g = e[c]), a.call(d, g, c, e)); // c++; // } // }); wst = { _ver: "1.0.0", process: function () { try { _wst.forEach(function (a) { wst.execute(a); }), (_wst = { push: function (a) { for (var d = 0; d < arguments.length; d++) wst.execute(arguments[d]); }, }); } catch (a) { this.error(a.message); } }, execute: function (a) { try { var b = void 0; "function" == typeof a ? ((b = a), (a = [])) : (b = eval(trim(a.splice(0, 1)[0]))); b.apply(this, a); } catch (d) { this.error(d.message); } }, error: function (a) { console.error("wst encountered an error : " + a); }, }; wst2 = { _ver: "1.0.0", _url: ("https:" == document.location.protocol ? "https://wst" : "http://wst") + ".lefigaro.fr/", _js: "wst.statistique.js", _p: [], _account: void 0, _partner: void 0, run: function () { try { if (!this._account) throw { message: "no account set" }; window["ws-disable-" + this._account] || (this._partner ? this.script(this._url + this._partner + "/" + this._js, this._p) : this.script(this._url + this._js, this._p)); } catch (a) { this.error(a.message); } }, script: function (a, b) { try { var d = document.getElementsByTagName("head")[0] || document.documentElement, c = document.createElement("script"), e = !1; c.src = a; c.onload = c.onreadystatechange = function () { if ( !e && (!this.readyState || "loaded" === this.readyState || "complete" === this.readyState) ) (e = !0), (c.onload = c.onreadystatechange = null), d && c.parentNode && d.removeChild(c); e && 1 == wysi && wysistat.apply(null, b); }; d.insertBefore(c, d.firstChild); } catch (f) { this.error(f.message); } }, unset_p: function () { try { this._p.splice(0, this._p.length); } catch (a) { this.error(a.message); } }, account: function (a) { try { this._account = trim(a); } catch (b) { this.error(b.message); } }, partner: function (a) { try { this._partner = trim(a); } catch (b) { this.error(b.message); } }, set_p: function (a, b, d) { try { (v = trim(b)), (this._p[a - 1] = d ? this._p[a - 1] ? this._p[a - 1] + d + v + "" : v + "" : v); } catch (c) { this.error(c.message); } }, error: function (a) { console.error("wst2 encountered an error : " + a); }, }; function trim(a) { return a ? a.replace(/^\s+/g, "").replace(/\s+$/g, "") : a; } wst.process(); function _wysistat() { wst2.run(); } function _setNom(a, b) { wst2.account(a); wst2.set_p(1, a); wst2.partner(b); } function _setFrame(a) { wst2.set_p(2, a); } function _setParaWysistat(a) { wst2.set_p(3, a); } function _setCompteurExtranet(a) { wst2.set_p(4, a, "|"); } function _setParaPage(a) { wst2.set_p(5, a); } function _setPage(a) { wst2.set_p(5, a); } function _setParaRoi(a) { wst2.set_p(6, a); } function _setParaProfiling(a) { wst2.set_p(7, a); } function _setParaCompte(a) { wst2.set_p(8, a); } function _setConsentCookie(a) { wst2.set_p(9, a); } function _setEvent(a) { wst2.set_p(10, a); } function _setSubAccount(a) { wst2.set_p(11, a); } function _reset() { wst2.account(void 0); wst2.unset_p(); wst2.partner(void 0); } function _wstopn() { _wysistat(); } function _setAccount(a, b) { _setNom(a, b); } function _setTag(a) { _setParaRoi(a); } function _setID(a) { _setCompteurExtranet(a); }